gtktextview: Avoid GtkGestureClick claiming on touch press
authorCarlos Garnacho <carlosg@gnome.org>
Fri, 25 Sep 2020 15:50:04 +0000 (17:50 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Fri, 25 Sep 2020 17:02:26 +0000 (19:02 +0200)
We still want the drag gesture (and text selection) to work. Avoid claiming
the gesture early, like it's done in the pointer case.

gtk/gtktextview.c

index add51f814f1521eda6bb9ff7ae7c8e7d957f4d33..1277bfb1b8fd81ebac942d50e9252c9517f08379 100644 (file)
@@ -5480,8 +5480,6 @@ gtk_text_view_click_gesture_pressed (GtkGestureClick *gesture,
 
                 if (is_touchscreen)
                   {
-                    gtk_gesture_set_sequence_state (GTK_GESTURE (gesture), sequence,
-                                                    GTK_EVENT_SEQUENCE_CLAIMED);
                     gtk_text_buffer_place_cursor (get_buffer (text_view), &iter);
                     priv->handle_place_time = g_get_monotonic_time ();
                   }